import re
import json
import requests 
access_key = "NjNhMmE5MmM4MTQ2MmUxYjY4Njc2YWUwLDExNTAsMTcxNTM5NTI3Nzk5MQ=="

url = "https://ai-api.betteryeah.com/v1/public_api/rest_api/0e182c93967046c7a050376e31599d74/execute_flow"
data = {
    "inputs":{
    "prd_link":"https://zmn-bigdata.oss-cn-beijing.aliyuncs.com/aidoc%2FBIZ_5024923_%E4%BA%A7%E5%93%81PRD_20241225.docx?OSSAccessKeyId=LTAI5tLoYggocBbMJHHQMNF2&Expires=1741148878&Signature=VSCq77R%2BxvtlJi7pU8ZZDlgnExI%3D",
    "prd_level":"B"
}
}
headers = {
    "Content-Type":"application/json",
    "Access-Key":access_key,
    "Workspace-Id":"63a2a92c81462e1b68676ae0"
}
res = requests.post(url,data=json.dumps(data),headers=headers)
json.loads(re.findall("```json([\s\S]*?)```",res.text)[0].strip())